ENT.Type = "anim"
ENT.Base = "base_structure"
ENT.PrintName = "Gun Factory"

ENT.Cost  		= 800
ENT.MaxStructs 	= 2
ENT.Model 		= "models/props/de_prodigy/transformer.mdl"
ENT.HP 			= 200
ENT.HealthRing	= {200,60,2}
ENT.Power		= 2
ENT.SparkPos 	= Vector(-30,-30,60)
ENT.Pay			= 50 // how much is the payout?
ENT.Upgrade		= 0
ENT.Scraps 		= true // does it give the payout directly to the attacker (moneymaking ents) or create scraps (dispenser types shit)?
ENT.Save 		= false // does the entity stay for 120 seconds if the person crashs?
ENT.GunType 	= nil
ENT.LastUsed	= nil
ENT.User 		= nil
ENT.Time		= 0
ENT.LastUsed 		= 0
ENT.Upgrades	= {
	{
	Level = 1
	},
	{
	Level = 1
	}
}

//These are weapons that can be produced in the gun factory.
//upgade level, pretty name, price, time, model, entity name
gunfactoryweps = {}
gunfactoryweps[1] = {0, "Laser Beam", 300, 60, "models/weapons/w_irifle.mdl", "weapon_lasergun"}
gunfactoryweps[2] = {0, "Laser Rifle", 600, 120, "models/weapons/w_snip_scout.mdl", "weapon_laserrifle"}
gunfactoryweps[3] = {1, "Plasma Gun", 600, 120, "models/weapons/w_irifle.mdl", "weapon_plasma"}
gunfactoryweps[4] = {1, "Rocket Launcher", 800, 120, "models/weapons/w_rocket_launcher.mdl", "weapon_rocketlauncher"}
gunfactoryweps[5] = {2, "Grenade Launcher", 1500, 240, "models/weapons/w_shotgun.mdl", "weapon_grenadegun"}
gunfactoryweps[6] = {2, "Worldslayer", 2000, 600, "models/weapons/w_rocket_launcher.mdl", "weapon_worldslayer"}
gunfactoryweps[7] = {2, "Guided Missle", 1000, 240, "models/weapons/w_rocket_launcher.mdl", "weapon_guidedmissle"}